Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(forkJoin): add tests with never and with unsubscribing after error #2394

Merged
merged 1 commit into from
Apr 3, 2017
Merged

test(forkJoin): add tests with never and with unsubscribing after error #2394

merged 1 commit into from
Apr 3, 2017

Conversation

mpodlasin
Copy link
Contributor

  • Add tests with Observable that never completes, so that it is clear how forkJoin operator behaves with it.
  • Add test which shows that forkJoin unsubscribes from other Observables when one of them errors.

Description:

I am writing docs for forkJoin and felt bad making assertions about how it behaves, without having unit tests to back me up.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 97.688% when pulling 073a033 on Podlas29:fork-join-with-never-tests into b9f611a on ReactiveX:master.

Copy link
Member

@benlesh benlesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good, overall, just a couple of small requests.

hot('------#'),
hot('----------'));
const expected = '------#';

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we vertically align these marble strings? It's good to make the next developer see the visual alignment of the events.

hot('--------------'),
hot('------|')
);
const expected = '------|';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the other feedback... vertically align the marbles.

Add tests with Observable that never completes, so
that it is clear how forkJoin operator behaves with it.
Add test which shows that forkJoin unsubscribes from
other Observables when one of them errors.
@coveralls
Copy link

coveralls commented Feb 21, 2017

Coverage Status

Coverage remained the same at 97.688% when pulling 073a033 on Podlas29:fork-join-with-never-tests into b9f611a on ReactiveX:master.

@mpodlasin
Copy link
Contributor Author

@Blesh done.

@benlesh benlesh merged commit 524259a into ReactiveX:master Apr 3, 2017
@lock
Copy link

lock bot commented Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants